<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>使用table来布局的演示</title>
<style type="text/css" media="all">

* {
  margin:0;
  padding:0;
}

table {
   border-collapse:collapse;
}

input,select {
   font-family:Arial, Helvetica, sans-serif; 
   font-size: 12px;
}

.required {
  font:0.8em Verdana !important;
  color:#f68622;
}

.explain {
  color:#808080;
}

.b {
  font-weight:bold;
  font-size:12px;
}

.democss table{
  font:11px/12px Arial, Helvetica, sans-serif;
  color:#333;
  width:420px;
}

.democss caption {
  display:none;
}

.democss th {
  font-weight:normal;
  text-align:right;
  vertical-align:top;
  padding:4px;
  padding-top:8px;
  width:110px
}

.democss td {
  text-align:left;
  padding:4px;
  width:294px;
}

.democss input {
  width:180px;
}

.democss select#content {
  width:185px;
}

.democss input.submit {
  width:70px;
}

</style>
</head>
<body>
<form id="demoform" class="democss" action="">
  <table summary="使用table来布局的演示" id="demo">
    <caption>
    Registration example form
    </caption>
    <tr>
      <th><span class="required">*</span>
        <label for="fname" accesskey="F">First name:</label></th>
      <td><input type="text" id="fname" value="" /></td>
    </tr>
    <tr>
      <th><span class="required">*</span>
        <label for="lname" accesskey="L">Last name:</label></th>
      <td><input type="text" id="lname" value="" /></td>
    </tr>
    <tr>
      <th><span class="required">*</span>
        <label for="content" accesskey="C">Preferred content:</label></th>
      <td><select name="content" id="content">
          <option value="us" selected="selected">Yahoo! U.S.</option>
          <option value="e1">Yahoo! U.S. in Spanish</option>
          <option value="b5">Yahoo! U.S. in Chinese</option>
          <option value="cn">Yahoo! China</option>
          <option value="uk">Yahoo! United Kingdom</option>
          <option value="ar">Yahoo! Argentina</option>
          <option value="aa">Yahoo! Asia</option>
          <option value="au">Yahoo! Australia</option>
          <option value="br">Yahoo! Brazil</option>
          <option value="ca">Yahoo! Canada in English</option>
          <option value="cf">Yahoo! Canada in French</option>
          <option value="fr">Yahoo! France</option>
          <option value="de">Yahoo! Germany</option>
          <option value="hk">Yahoo! Hong Kong</option>
          <option value="in">Yahoo! India</option>
          <option value="it">Yahoo! Italy</option>
          <option value="kr">Yahoo! Korea</option>
          <option value="mx">Yahoo! Mexico</option>
          <option value="sg">Yahoo! Singapore</option>
          <option value="es">Yahoo! Spain</option>
          <option value="tw">Yahoo! Taiwan</option>
        </select>
      </td>
    </tr>
    <tr>
      <th><span class="required">*</span>
        <label for="sex" accesskey="G">Gender:</label></th>
      <td><select name="sex" id="sex">
          <option value="">[Select] </option>
          <option value="m">Male</option>
          <option value="f">Female</option>
        </select>
      </td>
    </tr>
    <tr>
      <th><span class="required">*</span>
        <label for="yid" accesskey="Y">Yahoo! ID:</label></th>
      <td><input type="text" value="" id="yid">
        <span class="b">@yahoo.com</span><br />
        <span class="explain">ID may consist of a-z, 0-9, underscores, and a single dot (.)</span></td>
    </tr>
    <tr>
      <th><span class="required">*</span>
        <label for="pw" accesskey="P">Password:</label></th>
      <td><input type="password" value="" id="pw" />
        <br />
        <span class="explain">Six characters or more; capitalization matters!</span> </td>
    </tr>
    <tr>
      <th><span class="required">*</span>
        <label for="pw2" accesskey="R">Re-type password:</label></th>
      <td><input type="password" value="" id="pw2"/></td>
    </tr>
    <tr>
      <th></th>
      <td><input type="submit" value="Submit" class="submit"/>
        <input type="reset" value="Reset" class="submit"/></td>
    </tr>
  </table>
</form>
</body>
</html>